const controlMusic = require('../controllers/music/index');
const controlLyricAuthor = require('../controllers/music/lyricAuthor');
const controlMelodyAuthor = require('../controllers/music/MelodyAuthor');
const controlMusicAlbum = require('../controllers/music/musicAlbum');
const controlMusicLyric = require('../controllers/music/musicLyric');
const controlSinger = require('../controllers/music/singer');

module.exports = {
    'POST /music/add': controlMusic.addMusic,
    'POST /music/find': controlMusic.findMusic,
    'POST /music/findbyids': controlMusic.findMusicByids,
    'POST /music/findbyname': controlMusic.findMusicByName,
    'POST /music/list': controlMusic.list,
    'POST /music/islock': controlMusic.isLockMusic,
    'POST /music/update': controlMusic.updateMusic,
    'POST /music/del': controlMusic.delMusic,
    'POST /music/addMusicFile': controlMusic.addMusicFile,
    'POST /music/findRand': controlMusic.findRand,
    'GET /music/cancelUpload': controlMusic.cancelUpload,

    'POST /lyricAuthor/add': controlLyricAuthor.addLyricAuthor,
    'POST /lyricAuthor/find': controlLyricAuthor.findLyricAuthor,
    'POST /lyricAuthor/list': controlLyricAuthor.list,
    'POST /lyricAuthor/update': controlLyricAuthor.updateLyricAuthor,
    'GET /lyricAuthor/del': controlLyricAuthor.delLyricAuthor,

    'POST /melodyAuthor/add': controlMelodyAuthor.addMelodyAuthor,
    'POST /melodyAuthor/find': controlMelodyAuthor.findMelodyAuthor,
    'POST /melodyAuthor/list': controlMelodyAuthor.list,
    'POST /melodyAuthor/update': controlMelodyAuthor.updateMelodyAuthor,
    'GET /melodyAuthor/del': controlMelodyAuthor.delMelodyAuthor,

    'POST /musicAlbum/add': controlMusicAlbum.addMusicAlbum,
    'POST /musicAlbum/find': controlMusicAlbum.findMusicAlbum,
    'POST /musicAlbum/list': controlMusicAlbum.list,
    'POST /musicAlbum/update': controlMusicAlbum.updateMusicAlbum,
    'GET /musicAlbum/del': controlMusicAlbum.delMusicAlbum,

    'POST /musicLyric/add': controlMusicLyric.addMusicLyric,
    'POST /musicLyric/find': controlMusicLyric.findMusicLyric,
    'POST /musicLyric/list': controlMusicLyric.list,
    'POST /musicLyric/update': controlMusicLyric.updateMusicLyric,
    'GET /musicLyric/del': controlMusicLyric.delMusicLyric,

    'POST /singer/add': controlSinger.addSinger,
    'POST /singer/find': controlSinger.findSinger,
    'POST /singer/list': controlSinger.list,
    'POST /singer/update': controlSinger.updateSinger,
    'GET /singer/del': controlSinger.delSinger,
};